<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const Person = class Human {
        // Human局部变量只能在类方法中访问
        say() {
          console.log(Human);
        }
      };

      console.log(Person);
      // 构造一个对象（实例化对象）
      const p1 = new Person();
      p1.say();

      // new Person().say();
    </script>
  </body>
</html>
